<div class="right_side_operate_area">
	<?php  
		$user=$session->read('User');
		$isflag=true;
		$colleageid=$session->read("colleageid");
		if($showpage==1) {
			if(isset($paging)) { echo $this->renderElement('pagination',$paging);} 
		}
	?>
   
     <?php 
    	if($isflag)
    	{
    		echo '<div class="right item_add_btn">';
			echo $html->link(__("Add",true),"/colleages/editresearchcenter/");
			echo '</div>';
		}
		else
		{
			echo '<div class="right enableaction">';
			echo "<a>添加</a>";
			echo '</div>';
		}
	?>
	
	<div class="right_side_title left">
		<h2>
		<?php 
			$colleagename=$session->read("colleagename");
			echo $html->link($colleagename,"/colleages/showcolleageinfo/".$colleageid);
			?>
		</h2>
		<div class="clear"></div>
	</div>
	
    <div class="clear"></div>
</div>


<div class="right_side_scollbar">
    <div class="detail_info_panel">
    		 <div class="items_list">
    		 		<table>
    		 		
    		 			<tr>
    		 				<th>中心名称</th>
    		 				<th>成立时间</th>
    		 				<th>操作</th>
    		 			</tr>
    		 			
    		 			<?php
    		 					foreach($researchcenters as $researchcenter)
    		 					{
    		 						 $id = $researchcenter["CgResearchcenter"]["id"];
    		 						 $name = $researchcenter["CgResearchcenter"]["name"];
    		 						 $date = date("Y-m-d",strtotime($researchcenter["CgResearchcenter"]["establish_time"]));
    		 						 
    		 						 echo "<tr class='per_list'>";
    		 						 echo "<td>".$html->link($name,"/colleages/showresearchcenter/".$id,null)."</td>";
    		 						 echo "<td>".$date."</td>";
    		 						 echo "<td>";
									 if($isflag)
									 {
										echo $html->link(__("Edit",true),"/colleages/editresearchcenter/".$id,null,null);
										echo $html->link(__("Delete",true),"/colleages/delresearchcenter/".$id,array("onclick"=>"return doaction(this)"));
									 }
									 else
									 {
										echo "<span class='enableaction'>编辑</span>";
										echo "<span class='enableaction'>删除</span>";
									 }
									 echo "</td>";
									 echo "</tr>";
    		 					}
    		 			?>
    		 			
    		 		</table>
    		 </div>
    </div>
</div>

<?php echo $this->element('actionconfirm',array("title"=>"删除提示","message"=>"你确定要删除吗？")) ?>